import React, { Component } from 'react'

export default class SonA extends Component {


  toParent=()=>{
    this.props.chuan("hi，兄弟B");
  }

  render() {
    return (
      <>
        <div>SonA</div>
        <input type="button" value="传给兄弟" 
        onClick={this.toParent} />
      </>
    )
  }
}
